package com.daylightrobbery.entity;

public enum ResultEnum {
    SUCCESS(200, "success"),
    FAILED(400, "failed"),

    RELOGIN(12000, "请登录"),
    UNKNOWN_USER(12001, "用户不存在"),
    LOGIN_FAILED(12002, "登录失败, 用户名或密码错误"),


    INVALID_ARGS(13001, "参数错误"),

    INTERNAL_ERROR(14001, "服务器错误");




    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}
